package cn.gaotu.org.domain;


import java.time.LocalDate;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.gaotu.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 实体类：
 */
public class Shop extends BaseDomain{

    /**
     * 店铺名称
     */
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    /**
     * 店铺座机
     */
    @Excel(name = "店铺电话" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String tel;
    /**
     * 入驻时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "店铺时间" ,orderNum = "1", width = 30, isImportField = "true_st",exportFormat = "yyyy-MM-dd")
    private Date registerTime=new Date();
    /**
     * 店铺状态：1待审核，2审核通过待激活，3激活成功，4驳回
     */
    @Excel(name = "审核状态" ,orderNum = "1", width = 30, isImportField = "true_st")
    private Integer state=1;
    /**
     * 店铺地址
     */
    @Excel(name = "店铺地址" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String address;
    /**
     * 店铺logo
     */
    @Excel(name = "店铺图片" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String logo;
    /**
     * 店铺管理员ID
     */
    private Long adminId;
    private Employee admin;

    public Employee getAdmin() {
        return admin;
    }

    public void setAdmin(Employee admin) {
        this.admin = admin;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    @Override
    public String toString() {
        return "Shop{" +
        ", name=" + name +
        ", tel=" + tel +
        ", registerTime=" + registerTime +
        ", state=" + state +
        ", address=" + address +
        ", logo=" + logo +
        ", adminId=" + adminId +
        "}";
    }
}
